Every C++ program must have
what is known as a main function. When you run the program, the program will go
through every line of code in the main function and execute it. If your main is empty,
then your program will do nothing. |
|
For now, the important
thing to remember is that the function body is the part enclosed in { ... }
("curly braces"). The { indicates the beginning of the function, and the } indicates
the end of the function. The function body is the stuff in between. |